#ifndef POPUPDIALOG_H
#define POPUPDIALOG_H

#include <QDialog>
#include <QObject>

class PopupDialog : public QDialog
{
    Q_OBJECT
public:
    PopupDialog(QWidget *parent = nullptr,bool bAutoCenter = true,bool bAutoClose = false);

    // QWidget interface
protected:
    void paintEvent(QPaintEvent *event);
    void showCenter();

    // QWidget interface
protected:
    void resizeEvent(QResizeEvent *event);
private:
    bool m_bAutoCenter;
};

#endif // POPUPDIALOG_H
